home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
batchut
/
pbatch11.zip
/
PBHILFE.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-07-14
|
24KB
|
571 lines
@echo off
:/*==============================================================*\
: | |
: | Hello! This is the tutorial batch file of PowerBatch! Look |
: | through it and don't be annoyed by the large number of pa- |
: | rameters used in my calls of the pb (= PowerBatch) execu- |
: | table! What I do here is to make _HEAVY_ use of PowerBatch's |
: | capabilities. This could be YOUR batch file already! Think |
: | of using nice menus, mouse control and hotkeys instead of |
: | choice and echo orgys! And all this is for free! If you |
: | really want to use it regularly, let me have $ 20,-- or |
: | at least send me a nice nice nice post card of where you |
: | live! My son would be so glad receiving post cards from all |
: | over the world, so just go for it and let me have one. If |
: | you want to, I can send you one of where I live, as well. |
: | |
: | Hallo! Dies ist das Hilfeprogramm von PowerBatch! Sehen Sie |
: | sich ruhig alles an und lassen Sie sich nicht von den vie- |
: | len Parametern schocken, die ich in den Aufrufen von pb |
: | (= PowerBatch) verwende! Ich verwende hier _EXTENSIV_ die |
: | Möglichkeiten von PowerBatch. Dies könnte bereits IHR Batch |
: | File sein! Denken Sie einmal an die schönen Menüs mit Maus- |
: | steuerung, Tastenkürzeln u.a., die Sie jetzt ganz einfach |
: | realisieren können! Ohne Choice- und Echo-Orgien! Und all |
: | das "für lau"! Wenn Sie das Programm wirklich regelmäßig |
: | verwenden wollen, senden Sie mir einfach DM 30,-- oder |
: | schicken Sie mir eine hübsche Postkarte von Ihrem Wohnort |
: | oder aus dem Urlaub! Mein Sohn ist ganz wild darauf, Post- |
: | karten aus der ganzen Welt zu bekommen, also auf auf, |
: | schicken Sie mir einfach eine, und wenn Sie möchten, schreibe|
: | ich auch zurück. Vielen Dank im voraus. |
: | |
: | Matthias Nott -- Alte Uslarer Straße 9b -- D-37181 Hardegsen |
: | Tel. (++49) 5505 1542 -- Fax (++49) 5505 2807 |
: | EMAIL: MNOTT@GWDG.DE |
: | |
: | |
: | |
: | TO DO: * Text input / output to an environment variable. |
: | This one will be quite difficult. The input |
: | functionality is allready built in, but not |
: | yet activated, since there is no output so far |
: | (it's difficult and insecure to modify master |
: | environemnt). |
: | * Allow scrollbars -> get a full featured text |
: | previewer. That shouldn't be too difficult. |
: | * Support screen modes other than 80*25 (the pro- |
: | gram doesn't care about them, but lets you use |
: | 80*25 only. This should be quite easy anyway. |
: | * Allow the menu bar remaining in the same line |
: | as it was when you made a selection (it will |
: | go back to the first line since the menu is |
: | redrawn completely). This _is_ possible with |
: | the option "choose automatically" together with |
: | "after 0 seconds" (that is go to a defined menu |
: | item and do nothing else). But you would have to |
: | hack around with your batch file. Any ideas any- |
: | one? |
: | * Convince people of paying or at least of sending |
: | post cards for my son. :) As a child you would |
: | have been excited as well about post cards from |
: | all over the world, wouldn't you??? |
: | |
:\*==============================================================*/
:/*--------------------------------------------------------------*\
: | Zuerst die Auswahl der richtigen Sprache (deutsch/englisch) |
: | First choose the right language (german/english) |
: | Deutsche Dateien = *.ger, englische Dateien = *.eng |
: | German files = *.ger, english files = *.eng |
: | |
: | Zugleich ist dies hier die einfachste Form eines Menüs: |
: | Der Benutzer kann zwischen zwei Optionen wählen. Das Menü |
: | wird zusätzlich auf einem grauen Fensterhintergrund (back- |
: | groun.men) mit Titelzeile (title.men) und Statuszeile |
: | (status0.men) dargestellt. Der Menütext selbst steht in |
: | der Datei lang.men. |
: | |
: | Meanwhile, this is an example for a simple menu: The user |
: | can choose from two options. Additionally, the menu is dis- |
: | played on a nice grey background (backgrou.men), with title-|
: | bar (title.men) and status line (status0.men). The menu |
: | entries themselves reside in lang.men. |
:\*--------------------------------------------------------------*/
pb backgrou.men -fh0 -ft7 -x1 -y1 -r0 -s0
pb titel.men -fh1 -ft15 -x2 -y2
pb status0.men -fh7 -ft0 -x1 -y25 -r0 -s0
pb lang.men -fh1 -ft15 -fn0 -m1 -mm1 -mx4 -my3
if errorlevel 254 goto END
if errorlevel 2 goto ENGHALLO
if errorlevel 1 goto GERHALLO
:/*==============================================================*\
: | |
: | Dies ist das deutsche Hilfesystem. Die englische Fassung ist |
: | weiter unten! This is the German tutorial. See below for the |
: | english version! |
: | |
:\*==============================================================*/
:/*--------------------------------------------------------------*\
: | Anzeigen des Hauptmenüs: |
:\*--------------------------------------------------------------*/
:GERHALLO
pb backgrou.men -fh0 -ft7 -x1 -y1 -r0 -s0
pb titel.ger -fh1 -ft15 -x2 -y2
:/*--------------------------------------------------------------*\
: | Auswerten des Hauptmenüs: |
:\*--------------------------------------------------------------*/
:GERMENU
pb status.ger -fh7 -ft0 -x1 -y25 -r0 -s0
pb menu.ger -fh1 -ft15 -fn0 -m1 -mm1 -mx4 -my3 -o1
if errorlevel 254 goto END
if errorlevel 6 goto GERINFO
if errorlevel 5 goto GERMENU
if errorlevel 4 goto GERPARAM
if errorlevel 3 goto GERLOOK
if errorlevel 2 goto GERLEARN
if errorlevel 1 goto GERINTRO
:/*--------------------------------------------------------------*\
: | Einführungsbildschirm: |
:\*--------------------------------------------------------------*/
:GERINTRO
pb backgrou.men -fh0 -ft7 -x1 -y1 -r0 -s0
pb status8.ger -fh7 -ft0 -x1 -y25 -r0 -s0
pb intro1.ger -ft15 -u3 -y1 -fu142
pb intro1b.ger -o1 -y2 -x7 -r0 -s0 -ft14 -mm1
rem Ja, ja... Unterschiedliche Textfarbein in einem Textfenster
rem sind nur ein Täuschungsmanöver :) In Wirklichkeit wird ein
rem Teil des Textfensters (intro1.ger) in einer anderen Farbe
rem (intro1b.ger) noch einmal darübergelegt.
pb backgrou.men -fh0 -ft7 -x1 -y1 -r0 -s0
pb status8.ger -fh7 -ft0 -x1 -y25 -r0 -s0
pb intro2.ger -ft15 -u3 -y1 -fu142 -o1 -mm1
pb intro3.ger -ft15 -u3 -y1 -fu142 -o1 -mm1
pb intro4.ger -ft15 -u3 -y1 -fu142 -o1 -mm1
pb intro5.ger -ft15 -u3 -y1 -fu142 -o1 -mm1
pb intro6.ger